home *** CD-ROM | disk | FTP | other *** search
- This is an extension to release 4.0 of Rayshade to enable solids of
- revoloution to be rendered.
-
- The curve that is rotated is of the following form :-
-
- r^2 = c[3]*x^3 + c[2]*x^2 + c[1]*x + c[0]
-
- Either the coefficents themselves or the radius and gradient of the ends of
- the curve can be specified. (See Examples/vase.ray)
-
- Syntax...
-
- rotspline [<Surface>] Xbase Ybase Zbase Xapex Yapex Zapex
- coeffs c[3] c[2] c[1] c[0]
-
- or...
-
- rotspline [<Surface>] Xbase Ybase Zbase Rbase Gbase
- Xapex Yapex Zapex Rapex Gapex
-
- where Xbase Ybase Zbase is the position of the center of the centre of one
- end and Xapex Yapex Zapex is the centre of the other. The word coeffs must
- be included in the first method. Rbase is the radius at the base and Gbase
- is the gradient at the base.
-
- Files included are :-
- libray/libobj/rotspline.c - The object routines.
- libray/libobj/rotspline.h - The object definitions.
- libray/libobj/Makefile.SH - Makefile for libobj.
- libshade/yacc.y - Version with rotspline code in.
- Examples/vase.ray - Example file with a vase.
- Examples/vase2.ray - Same vase defined the other way.
-
- It will be neccesary to un-tar the files and then do a Reconfigure.
-
- Gerald Iles.
-
- Email : ilesg@uk.ac.man.cs.p4
-